package cn.hwadee.muying.mapper;

import cn.hwadee.muying.entity.CareRecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import cn.hwadee.muying.entity.User;
import cn.hwadee.muying.commons.page.MyPage;

import java.sql.Timestamp;
import java.util.List;

/**
 * <p>
 * 关怀记录 Mapper 接口
 * </p>
 *
 * @author SuWuqiang
 * @since 2018-08-08
 */
@Mapper
@Component(value = "careRecordMapper")
public interface CareRecordMapper extends BaseMapper<CareRecord> {

    List<CareRecord> list(@Param("page") MyPage<CareRecord> page, @Param("cUser") User cUser,  @Param("start")Timestamp start,  @Param("end")Timestamp end, @Param("keyword") String keyword) throws Exception;

}
